package com.wanglibao.woodtrade.woodtrade.ui.activity.user;

import android.os.Build;
import android.os.Bundle;
import android.view.WindowManager;
import android.webkit.WebView;
import android.widget.RelativeLayout;

import com.wanglibao.woodtrade.woodtrade.R;
import com.wanglibao.woodtrade.woodtrade.ui.activity.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;

public class AgreementActivity extends BaseActivity {


    @Bind(R.id.rl_common_title)
    RelativeLayout rl_common_title;

    @Bind(R.id.wb_activity_agreement)
    WebView wb_activity_agreement;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_agreement);
        ButterKnife.bind(this);
        if (Build.VERSION.SDK_INT >= 19) {
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        } else {
            rl_common_title.setPadding(0, 0, 0, 0);
        }
        addViewClicklistener(tvBack);
        tvTitle.setText("用户协议");

        wb_activity_agreement.getSettings().setJavaScriptEnabled(true);
        wb_activity_agreement.loadUrl("http://wlhm.wanglibao.com/UserAgreement.html");
    }
}
